package exemplos;

import javax.media.j3d.BranchGroup;

import com.sun.j3d.utils.geometry.ColorCube;
import com.sun.j3d.utils.geometry.Cone;
import com.sun.j3d.utils.universe.SimpleUniverse;

public class Hello3d {

    public Hello3d() {
	SimpleUniverse universe = new SimpleUniverse();

	BranchGroup group = new BranchGroup();

	ColorCube myCube = new ColorCube(0.3);

	group.addChild(myCube);

	Cone cone = new Cone(0.5f, 1.2f);

	group.addChild(cone);

	universe.getViewingPlatform().setNominalViewingTransform();

	universe.addBranchGraph(group);


    }

}
